package service;
import  domain.*;
import execption.lackGoodException;
import execption.nullValueException;

import java.util.List;

public interface CustomerService {
    /**
     * 用户登录
     * @param username
     * @param password
     * @return
     */
    boolean customerLogin(String username ,String password);

    /**
     * 顾客通过true false 查看库存鲜花;
     * @param flag
     * @return
     */
    List<flower>  findAllFlower(boolean flag);

    /**
     * 顾客通过id ,total ,price 查看鲜花;
     * @param flowerId
     * @param flowerTotal
     * @param flowerPrice
     * @return
     */
    List<flower> findSomeFlower(String flowerId ,String flowerTotal ,String flowerPrice);

    /**
     * 查看该顾客订单
     * @return
     */
    List<CorderResult> findOrders();

    /**
     * 顾客购买鲜花
     * @param o
     * @return
     * @throws lackGoodException
     * @throws nullValueException
     */
    boolean AddOrder(order o) throws lackGoodException, nullValueException;
}
